package a.e.a;

import a.c.e;
import a.j.g;
import a.j.jg;
import a.j.ld;

import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;

public class ab
  extends r
{
  private static Hashtable g = new Hashtable(11);
  protected g h;
  protected ld i;
  protected z j;
  protected Map k;
  protected x l;
  private e m;
  private List n = new ArrayList();
  public static int o;
  
  public ab(g paramg, Map paramMap)
  {
    this.k = paramMap;
    this.h = paramg;
    this.j = new z(paramg.cb());
    this.l = new x();
    a("LabelGraphics", this.l);
    a("graphics", this.j);
  }
  
  public void a()
  {
    super.a();
    this.i = null;
    this.m = null;
    this.n.clear();
  }
  
  public void a(r paramr)
  {
    boolean bool = r.f;
    if (!bool) {
      if (paramr == this.j)
      {
        if (bool) {
          break label39;
        }
        this.i = this.j.f();
        if (r.e == 0) {
          return;
        }
      }
    }
    label39:
    if (paramr == this.l)
    {
      this.n.add(this.l.c());
      this.l.f();
    }
  }
  
  protected void f()
  {
    boolean bool = r.f;
    int i2 = r.e;
    if (!bool) {
      if (this.i == null) {
        return;
      }
    }
    String str = d("label");
    if (str.length() > 0) {
      this.i.b(str);
    }
    if (this.l != null)
    {
      int i1 = 0;
      do
      {
        if (i1 >= this.n.size()) {
          break;
        }
        Map localMap = (Map)this.n.get(i1);
        if (!bool) {
          if (this.i.x() < i1 + 1) {
            this.i.b(this.i.v());
          }
        }
        jg localjg = this.i.b(this.i.x() - 1);
        this.l.a(localMap);
        this.l.a(localjg);
        if (!bool)
        {
          if ("index_label".equals(localMap.get("type"))) {
            localjg.a(Integer.toString(f("id")));
          }
          i1++;
        }
      } while (i2 == 0);
    }
  }
  
  public void b()
  {
    boolean bool = r.f;
    if (!bool)
    {
      if (this.i == null) {
        this.i = this.h.M().m();
      }
      this.m = this.h.a(this.i);
      f();
    }
    Object localObject = this.c.get("id");
    if (!bool) {
      if (localObject != null)
      {
        this.k.put(localObject, this.m);
        if (!bool) {
          if (r.e == 0) {
            return;
          }
        }
      }
      else
      {
        localObject = this.c.get("name");
      }
    }
    if ((bool) || (localObject != null)) {
      this.k.put(localObject, this.m);
    }
  }
  
  public Object c()
  {
    return this.m;
  }
  
  static
  {
    g.put("c", new Byte((byte)100));
    g.put("n", new Byte((byte)108));
    g.put("nw", new Byte((byte)104));
    g.put("ne", new Byte((byte)105));
    g.put("w", new Byte((byte)111));
    g.put("sw", new Byte((byte)107));
    g.put("s", new Byte((byte)109));
    g.put("se", new Byte((byte)106));
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.a.ab

 * JD-Core Version:    0.7.0.1

 */